﻿<Grid xmlns="http://schemas.microsoft.com/client/2007" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
      xmlns:data="clr-namespace:SilverlightOverview.Data;assembly=SilverlightOverview">
  <Grid.Resources>
    <data:SessionDataFactory x:Key="SessionListData" />
  </Grid.Resources>
  <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
              Orientation="Horizontal"
              DataContext="{StaticResource SessionListData}">
    <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
      <TextBlock TextWrapping="Wrap" FontSize="14" Text="Sessions:" />
      <ListBox ItemsSource="{Binding Sessions}" DisplayMemberPath="Title" />
    </StackPanel>
    <StackPanel HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="8 0 0 0">
      <TextBlock TextWrapping="Wrap" FontSize="14" Text="First Session Date:" />
      <Controls:DatePicker SelectedDate="{Binding FirstSession.Date}" />
    </StackPanel>
  </StackPanel>
</Grid>
